
const requireComponent = require.context('./', true, /\.vue$/)
// console.log(requireComponent.keys())
const components = requireComponent.keys().map(key => {
  return requireComponent(key)
})

export default {
  install: (Vue) => {
    components.forEach(component => {
      Vue.component(component.default.name, component.default)
      // 过滤器
      // 自定义指令
      // Vue.prototype
    })
  }
}
